package cn.tedu.property_management_system.mapper;

import cn.tedu.property_management_system.entity.Administrator;
import cn.tedu.property_management_system.entity.VO.AdministratorVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdministratorMapper {

    int insert(Administrator administrator);

    int delete(Integer id);

    int deletes(List<Integer> ids);

    List<AdministratorVO> select();

    AdministratorVO selectById(Integer id);

    List<String> userNameList();

    List<String> adminTypeList();

    Integer getUserId(String username);

    Integer getRoleId(String role);

    int updatePassword(@Param("id") Integer id, @Param("password") String password);

    String getPasswordById(Integer id);

    Administrator getAdministrator(Integer id);



 









}
